package datamodels

import (
	"time"
)

type Category struct {
	Id       int64
	Name     string
	CreateAt time.Time
}

type Article struct {
	Id       int64
	Cid      int64
	Title    string
	Info     string
	Thumb    string
	Content  string
	CreateAt time.Time
	UpdateAt time.Time
}

type Comments struct {
	Id       int64
	Aid      int64
	Username string
	Email    string
	Info     string
	CreateAt time.Time
	UpdateAt time.Time
}

func init() {
	//orm.NewOrm()
	//orm.DefaultTimeLoc = time.Local
	//orm.RegisterDriver("default", "mysql");
	//orm.RegisterModel()

}
